package com.unionftech.common.widget.ui

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.unionftech.common.R

class ChangeDevListAdapter(list: MutableList<String>) :
    BaseQuickAdapter<String, BaseViewHolder>(android.R.layout.simple_list_item_2, list) {
    override fun convert(holder: BaseViewHolder, item: String) {
        holder.setText(android.R.id.text1, item.split("\n")[0])
        holder.setTextColorRes(android.R.id.text1, R.color.color_1C1D21)
        holder.setText(android.R.id.text2, item.split("\n")[1])
        holder.setTextColorRes(android.R.id.text2, R.color.color_1C1D21)
    }
}